package BanyuanClub.Study.Day0304;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

/**
 * 缓冲字符输出流
 */
public class TextBufferdeWriter {
    public static void main(String[] args) {
        try(BufferedWriter bw = new BufferedWriter(
                new FileWriter("ss.txt")
        )){
            bw.write("aaa");
            bw.newLine();//换行
            bw.write("bbb");
            bw.flush();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
